<!DOCTYPE html>
<html>
	<head th:replace="/mobile/common::head(~{::custom_settings})">
		<th:block th:fragment="custom_settings">
			<title>网吧食品经营监管系统</title>
			<link type="text/css" rel="stylesheet" th:href="@{{css}/mobile/supplier/good/edit.css(css=${css})}"/>
			<script type="text/javascript">
				var __goodId = "[[${#request.getParameter('goodid')}]]";
			</script>
		</th:block>
	</head>
	
	<body>
		<div class="page">
			<div class="title">
				<i class="fa fa-angle-left" onclick="onBackClick();"></i>
				<span>编辑商品</span>
				<i class="fa fa-check-square-o" onclick="onSaveClick();"></i>
			</div>
			<div class="content">
				<div class="weui-cells_input">
					<div class="placeholder"></div>
					<label class="sub-title">基本信息<span class="red">*</span></label>
					<div class="spliter"></div>
					<div class="row">
						<label>商品名称</label>
						<input id="goodname" class="weui-input input" type="text" placeholder="请输入商品名称"/>
					</div>
					<div class="row">
						<label>商品编码</label>
						<input id="goodcode" class="weui-input input" type="text" placeholder="请输入商品编码"/>
					</div>
					<div class="row">
						<label>商品规格</label>
						<input id="goodspecs" class="weui-input input" type="text" placeholder="请输入商品规格"/>
					</div>
					<div class="row">
						<label>计量单位</label>
						<input id="meteringunit" class="weui-input input" type="text" placeholder="请输入计量单位"/>
					</div>
					<div class="row price">
						<label>商品价格</label>
						<input id="goodprice" class="weui-input input" type="text" placeholder="请输入商品价格"/>
						<div class="price-tips">*价格可不填，价格不为零的商品将直接上架销售。</div>
					</div>
					<div class="row">
						<label>生产厂家</label>
						<input id="manufacturer" class="weui-input input" type="text" placeholder="请输入生产厂家"/>
					</div>
					<div class="placeholder"></div>
					<label class="sub-title">其他信息</label>
					<div class="spliter"></div>
					<div class="row detail">
						<label>商品介绍</label>
						<textarea id="gooddetail" class="weui-textarea" rows="3" placeholder="请输入商品介绍"></textarea>
					</div>
					<div class="placeholder"></div>
					<label class="sub-title">封面图片<span class="red">*</span></label>
					<div class="spliter"></div>
					<div class="row picture">
						<div rowid="">
							<input id="goodpicture" class="file" type="file" prop="fileInput"/>
							<input id="goodpictureId" type="hidden"/>
							<img id="goodpictureImage" class="image" prop="fileViewer" th:src="@{{ctx}/static/image/mobile/noimg.png(ctx=${ctx})}"/>
							<i class="fa fa-folder-open-o" prop="fileSelector"></i>
						</div>
					</div>
					<div class="placeholder"></div>
					<label class="sub-title">更多图片</label>
					<div class="spliter"></div>
				</div>
			</div>
		</div>
		<div class="image-container" onclick="closeImageContainer();"><img/></div>
		
		<th:block th:replace="/mobile/common::common_toast_define"/>
		<th:block th:replace="/mobile/common::common_dialog_define"/>
		
		<script type="text/javascript" th:src="@{{js}/mobile/supplier/good/EditHandler.js(js=${js})}"></script>
	</body>
</html>
